import http from '@/utils/request.js';
// 获取勘误信息
export const projectDetail = (data) => {
	// return http.get('/business/work/building/detail', data);
	return http.request({
		url: '/business/work/building/detail',
		method: 'get',
		data,
	});
};
// 新增勘误
export const addDetail = (data) => {
	// return http.post('/business/work/building/submit', data, true);
	return http.request({
		url: '/business/work/building/submit',
		method: 'post',
		data,
		textJson: true,
	});
};

// 获取个人管理电梯
export const myElevator = (data) => {
	// return http.post('/repair/building/personalElevatorList', data, true);
	return http.request({
		url: '/repair/building/personalElevatorList',
		method: 'post',
		data,
		textJson: true,
	});
	// return http.post('/repair/maintain/elevator/user/building',data,true)
};

// 获取部门管理电梯
export const deptElevatorList = (data) => {
	// return http.post('/repair/building/deptElevatorList', data, true);
	return http.request({
		url: '/repair/building/deptElevatorList',
		method: 'post',
		data,
		textJson: true,
	});
};

//* ******************************************************

// 年审延期
export const addAnnualSave = (data) => {
	// return http.post('/repair/maintainplandeferthistory/save', data, true);
	return http.request({
		url: '/repair/maintainplandeferthistory/save',
		method: 'post',
		data,
		textJson: true,
	});
};
// 计划日志更新证明
export const updataAnnualSave = (data) => {
	// return http.post('/repair/maintainplandeferthistory/update', data, true);
	return http.request({
		url: '/repair/maintainplandeferthistory/update',
		method: 'post',
		data,
		textJson: true,
	});
};

// 年审非年审操作日志
export const annualListLogs = (data) => {
	// return http.get('/repair/maintainplandeferthistory/list', data);
	return http.request({
		url: '/repair/maintainplandeferthistory/list',
		method: 'get',
		data,
	});
};

// 年审非年审日历
export const getPlanAndSignDates = (data) => {
	// return http.post('/repair/maintainplandeferthistory/getPlanAndSignDates', data, true);
	return http.request({
		url: '/repair/maintainplandeferthistory/getPlanAndSignDates',
		method: 'post',
		data,
		textJson: true,
	});
};
